book.cls
documentclass and the default settings for
fancyheadings; so we only issue the commands
\usepackage{fancyheadings} \pagestyle{fancy}and let fancyheadings take care of everything. On the pages where new chapters start, we get a centered page number in the footer; there is no header, and there are no decorative lines.
On an even page, we get the layout:
1.2 EVALUATION
CHAPTER 1. INTRODUCTION
page body
4
On an odd page, we get the layout:
CHAPTER 1. INTRODUCTION
1.2 EVALUATION
page body
3
where the header text is slanted uppercase.
This default layout is produced by the following commands:
\lhead[\fancyplain{}{\slshape \rightmark}]{\fancyplain{}% {\slshape \leftmark}} \chead{} \rhead[\fancyplain{}{\slshape \leftmark}]{\fancyplain{}% {\slshape \rightmark}} \lfoot{} \cfoot{\rmfamily \thepage} \rfoot{}
The following settings are used for the decorative lines:
\headrulewidth
0.4pt\footrulewidth
0 pt\plainheadrulewidth
0 pt\plainfootrulewidth
0 pt
The header text is turned into all uppercase in book.cls
.